#!/bin/bash

# manager node URI e.g. http://localhost:6080
MANAGER_NODE_URI=http://localhost:6080

# Top directory of VNC tools
VNC_ROOT=/usr/local/vnc

# VNC WORK DIR
VNC_SESSION_DIR=${VNC_ROOT}/sessions

# VNC CONF DIR
VNC_CONF_DIR=${VNC_ROOT}/conf

# VNC_CONF_DEFAULT
VNC_CONF_DEFAULT=${VNC_CONF_DIR}/DEFAULT.xstartup

# hostname or IP address of VNC Server
VNC_HOSTNAME="localhost"

#VNC http home
VNC_CLASS_DIR="/usr/share/vnc/classes"

# class and jar file of VNC Applet
VNC_CODE="vncviewerclass"
VNC_ARCHIVE="vncviewerjar"

# set default window size
VNC_WIDTH="1280"
VNC_HEIGHT="1088"

# max idle time of session
# - unit: minutes (about 4 hours)
VNC_TIMEOUT=240

#
# Max number of trying to start vncserver
#
MAX_TRY=5

# VNC Ports based on
VNC_BASEPORT="5800 5900 6000"

# set default login passwd
VNC_LOGINPASSWD="dawning123"
VNC_LOGINAUTH="${HOME}/.vnc/passwd"

# Encoding used by VNC Plugin
VNC_LOCALE="zh_CN.UTF-8"
#VNC_LOCALE="C"

# Xstart variable
XSTARTUP_USER="${HOME}/.vnc/xstartup"
XSTARTUP_BAK="${HOME}/.vnc/xstartup.saved"
TEMPLATE_DEFAULT="${VNC_CONF_DEFAULT}"
TEMPLATE_USER="${VNC_CONF_DIR}/${USER}.xstartup"

# show control menu in applet (yes or no)
VNC_CLIENTCTRL="yes"

# VNC lock file
VNC_LOCKDIR=/tmp/.X11-unix

# Vnc Server Utility path
VNC_SERVER="vncserverpath"

# Vnc Password Utility path
VNC_PASSWD="vncpasswdpath"

DB_USERNAME="root"
DB_NAME="gv_local"

DB_PASSWD="root123"

#
# All VNC Servers, for example: VNC_PROXYS="gv41New113 gv41New61"
VNC_PROXYS="localproxy"

#VNC server CPU and Memory limit percent
VNC_LIMIT=90
VNC_MIN_LIMIT=50

#config this property when vnc ip is not right
#get the ips by command "hostname -I", then resort it manually
#SORTED_IPS=""